package io.renren.system.sys.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.renren.common.entity.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

/**
 * 地区区域表
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("sys_region")
public class SysRegionEntity extends BaseEntity {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "区域标识(区划代码)")
    private String regionid;

    @ApiModelProperty(value = "区域排序")
    private String regionseq;

    @ApiModelProperty(value = "区域名称(区划名称)")
    private String regname;

    @ApiModelProperty(value = "有无子级(0-有;1-无)")
    private Integer hashchildarea;

    @ApiModelProperty(value = "有无村组(0-有;1-无)")
    private Integer hashchildgroup;

    @TableField(exist = false)
    private List<SysRegionEntity> children;
}